code {
  font-family: Menlo, Monaco, Consolas, Courier, monospace;
  background-color: #f9fafc;
  padding: 0 4px;
  border: 1px solid #eaeefb;
  border-radius: 4px;
}

.hljs {
  line-height: 1.8;
  font-family: Menlo, Monaco, Consolas, Courier, monospace;
  font-size: 12px;
  background-color: #fafafa;
  border: solid 1px #eaeefb;
  margin-bottom: 25px;
  border-radius: 4px;
  -webkit-font-smoothing: auto;
}

.element-doc {
  padding-top: 30px;
  h2 {
    font-size: 28px;
    color: #1f2d3d;
    margin: 0;
  }
  h3 {
    font-size: 22px;
    margin: 55px 0 20px;
  }
  h2,
  h3,
  h4,
  h5 {
    font-weight: normal;
    color: #1f2f3d;
    &:hover a {
      opacity: 0.4;
    }
    a {
      float: left;
      margin-left: -20px;
      opacity: 0;
      cursor: pointer;
      &:hover {
        opacity: 0.4;
      }
    }
  }
  > {
    table {
      border-collapse: collapse;
      width: 100%;
      background-color: #fff;
      font-size: 14px;
      margin-bottom: 45px;
      line-height: 1.5em;
      strong {
        font-weight: normal;
      }
      td,
      th {
        border-bottom: 1px solid #dcdfe6;
        padding: 15px;
        max-width: 250px;
      }
      th {
        text-align: left;
        white-space: nowrap;
        color: #909399;
        font-weight: normal;
      }
      td {
        color: #606266;
      }
      th:first-child,
      td:first-child {
        padding-left: 10px;
      }
    }
    ul:not(.timeline) {
      margin: 10px 0;
      padding: 0 0 0 20px;
      font-size: 14px;
      color: #5e6d82;
      line-height: 2em;
    }
  }
  p {
    font-size: 14px;
    color: #5e6d82;
    line-height: 1.5em;
  }
  .tip {
    padding: 8px 16px;
    background-color: #ecf8ff;
    border-radius: 4px;
    border-left: #50bfff 5px solid;
    margin: 20px 0;

    code {
      background-color: rgba(255, 255, 255, 0.7);
      color: #445368;
    }
  }
  .warning {
    padding: 8px 16px;
    background-color: #fff6f7;
    border-radius: 4px;
    border-left: #fe6c6f 5px solid;
    margin: 20px 0;

    code {
      background-color: rgba(255, 255, 255, 0.7);
      color: #445368;
    }
  }
}
.demo {
  margin: 20px 0;
}
.demo-icon {
  .icon-container {
    max-width: 1560px;
    margin: 0 auto;
    text-align: center;
    border-top: 1px solid #eee;
    border-left: 1px solid #eee;
    .icon-item {
      background: #fff;
      border-right: 1px solid #eee;
      border-bottom: 1px solid #eee;
      padding: 20px 5px;
      width: 145px;
      cursor: pointer;
      .icon {
        color: #666;
      }
      .icon-name {
        margin-top: 10px;
        font-size: 14px;
        color: #999;
      }
      &:hover {
        .icon {
          color: #409eff;
        }
        .icon-name {
          color: #409eff;
        }
      }
    }
  }
}
